import os
import uuid


class Myfile(object):
    def __init__(self):
        self.dir = './static/files'

    def rename(self, filename):
        name = os.path.splitext(filename)[1]
        fname = uuid.uuid4().hex + name
        return fname


myf = Myfile()
